import { ApiPropertyOptional } from "@nestjs/swagger";
import { IsOptional, IsString } from "class-validator";
import { QueryDto } from "/@/common/dto/query.dto";

export class AdminGetUserListDto extends QueryDto {
  @IsOptional()
  @ApiPropertyOptional({ description: "用户名称" })
  @IsString({ message: "name必须为字符串" })
  readonly nickName: string;

  @IsOptional()
  @ApiPropertyOptional({ description: "用户id" })
  readonly id: string;
}
export class AdminGetAddressListDto extends QueryDto {
  @IsOptional()
  @ApiPropertyOptional({ description: "用户id" })
  readonly user_id: string;

  @IsOptional()
  @ApiPropertyOptional({ description: "收货人姓名" })
  readonly user_name: string;

  @IsOptional()
  @ApiPropertyOptional({ description: "收货人手机号" })
  readonly user_phone: string;
}
